#!/usr/bin/env bash
CONTAINER=$1
[ -z "$CONTAINER" ] && { echo "用法: $0 <容器名或ID>"; exit 1; }
docker exec "$CONTAINER" redis-cli ping && echo "✅ Redis 可正常连接" || echo "❌ 连接失败"
